package com.koron.order.patrol.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.query.PageQuery;
import com.koron.order.patrol.bean.po.PatrolUserPo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * 巡视工单-巡视人员从表(PatrolUser)表服务接口
 *
 * @author zhouj
 * @since 2021-10-26 15:28:19
 */
public interface PatrolUserService {

    int insertOrUpdate(SessionFactory factory, PatrolUserPo patrolUser);

    int insertOrUpdateBatch(SessionFactory factory, List<PatrolUserPo> patrolUserList);

    int insert(SessionFactory factory, PatrolUserPo patrolUser);

    int insertBatch(SessionFactory factory, List<PatrolUserPo> patrolUserList);

    int update(SessionFactory factory, PatrolUserPo patrolUser);

    int deleteById(SessionFactory factory, String id);

    PatrolUserPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, PatrolUserPo patrolUser, PageQuery pageQuery);

    List<PatrolUserPo> queryList(SessionFactory factory, PatrolUserPo patrolUser);

    List<PatrolUserPo> queryByPatrolId(SessionFactory factory, String patrolId);

    List<PatrolUserPo> queryByPatrolIds(SessionFactory factory, List<String> patrolIds);

}
